/*
   Root, Router 配置
*/
import React from 'react';
import { Route, Switch, Redirect } from 'react-router-dom';

import App from './../App';
import LoginForm from './../page/login/loginPage';
import StrategyInfo from './../page/strategyInfo/index';

const Root = () => (
    <div>
        <Switch>
            <Route
                path="/"
                render={props => (
                    <App>
                        <Switch>
                            <Route path="/" exact component={LoginForm} />
                            <Route path="/login" component={LoginForm} />
                            <Route path="/strategyInfo" component={StrategyInfo} />
                        </Switch>
                    </App>
                )}
            />
        </Switch>
    </div>
);

export default Root;